<template>
  <MdEditor
    @on-upload-img="handleUploadImg"
    style="height: 100%"
    @on-change="props.onChange"
    :model-value="props.value"
    placeholder="请输入内容....."
  />
</template>

<script setup lang="ts">
import { MdEditor } from 'md-editor-v3'
import 'md-editor-v3/lib/style.css'
interface Props {
  value: any
  onChange: (v: string) => void
}
const props = defineProps<Props>()
const handleUploadImg = async (file: any) => {}
</script>

<style></style>
